﻿#pragma once

typedef struct LogonWindow LogonWindow;

typedef void (*LogonWindowDelete)(LogonWindow*);
typedef INT_PTR (*LogonWindowDoModal)(LogonWindow*);

// 登录窗口
struct LogonWindow {
    HWND mHandle;       // 窗口句柄
    HWND mParent;       // 父窗口句柄
    LPTSTR mPassword;   // 密码
    LPTSTR mUsername;   // 用户名

    LogonWindowDelete deleteSelf;
    LogonWindowDoModal doModal;
};

LogonWindow* New_LogonWindow(HWND);
